package com.zkyc.framework.website.mapper;

import com.zkyc.framework.common.pojo.WebRefAssociation;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * (WebRefAssociation)表数据库访问层
 *
 * @author wj
 * @since 2022-12-02 16:34:43
 */
@Mapper
public interface WebRefAssociationMapper extends BaseMapper<WebRefAssociation> {

    @Insert("<script>" +
            "INSERT INTO web_ref_association (association_id, file_id, create_time, file_type) VALUES" +
            "<foreach collection='list' item='item' index='index' separator=','>" +
            "(#{item.associationId}, #{item.fileId}, #{item.createTime},  #{item.fileType})" +
            "</foreach>" +
            "</script>")
    int insertBatch(List<WebRefAssociation> webRefAssociationList);
}

